package javapop.utils;

public class Nonuple<A, B, C, D, E, F, G, H, I> {
	private final A a;
	private final B b;
	private final C c;
	private final D d;
	private final E e;
	private final F f;
	private final G g;
	private final H h;
	private final I i;
	
	public Nonuple(A a, B b, C c, D d, E e, F f, G g, H h, I i) {
		this.a = a;
		this.b = b;
		this.c = c;
		this.d = d;
		this.e = e;
		this.f = f;
		this.g = g;
		this.h = h;
		this.i = i;
	}
	
	public A getFirst() {
		return a;
	}
	
	public B getSecond() {
		return b;
	}
	
	public C getThird() {
		return c;
	}
	
	public D getFourth() {
		return d;
	}
	
	public E getFifth() {
		return e;
	}
	
	public F getSixth() {
		return f;
	}
	
	public G getSeventh() {
		return g;
	}

	public H getEighth() {
		return h;
	}

	public I getNinth() {
		return i;
	}

	@Override
	public String toString() {
		StringBuilder buf = new StringBuilder();
		buf.append("(");
		buf.append(a);
		buf.append(",");
		buf.append(b);
		buf.append(",");
		buf.append(c);
		buf.append(",");
		buf.append(d);
		buf.append(",");
		buf.append(e);
		buf.append(",");
		buf.append(f);
		buf.append(",");
		buf.append(g);
		buf.append(",");
		buf.append(h);
		buf.append(",");
		buf.append(i);
		buf.append(")");
		return buf.toString();
	}
}
